<%@ Page Language="C#" MasterPageFile="~/DoctorForum.Master" AutoEventWireup="true" Codebehind="Search.aspx.cs" Inherits="WebForum.Search" Title="Doctor Forum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <table width="100%">
        <tr>
            <td align="right">
                Workplace</td>
            <td align="right">
                <asp:TextBox ID="TextBoxWorkplace" runat="server" ToolTip="Workplace of Doctor"></asp:TextBox></td>
            <td align="right">
                Specialization</td>
            <td align="right">
                <asp:TextBox ID="TextBoxSpecialization" runat="server" ToolTip="Specialization of Doctor"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">
                Experience</td>
            <td align="right">
                <asp:TextBox ID="TextBoxExperience" runat="server" ToolTip="Experience of Doctor"></asp:TextBox></td>
            <td align="right">
                Achievement</td>
            <td align="right">
                <asp:TextBox ID="TextBoxAchievement" runat="server" ToolTip="Achievement of Doctor"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" colspan="4">
                <asp:Button ID="ButtonSearch" runat="server" Text="Search" /></td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" DataSourceID="ObjectDataSource1" PageSize="5" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" ShowFooter="True">
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <Columns>
                        <asp:TemplateField HeaderText="Name">
                            <ItemTemplate>
                                <asp:HiddenField ID="HiddenFieldID" Value='<%# Bind("Id") %>' runat="server" />
                                <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Bind("Name") %>' OnClick="LinkButton1_Click"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Workplace">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Workplace") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Specialization">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("Specialization") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Experience">
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("Experience") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Achievement">
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("Achievement") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <asp:Panel ID="PanelInfo" runat="server" Visible="false" Width="100%">
        <table width="100%" style="border:solid 1px #ccc">
            <tr>
                <td style="width: 76px" align="right">
                    Name:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelName" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Age:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelAge" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Localtion:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelLocaltion" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Email:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelEmail" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Workplace:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelWorkplace" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Specialization:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelSpecialization" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Experience:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelExperience" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                    Achievement:</td>
                <td style="width: 393px">
                    <asp:Label ID="LabelAchievement" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 76px" align="right">
                </td>
                <td style="width: 393px">
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:ObjectDataSource ID="ObjectDataSource1" TypeName="WebForum.App_Data.DoctorDataSource" SelectMethod="FindDoctor" runat="server">
        <SelectParameters>
            <asp:ControlParameter Name="w" PropertyName="Text" DefaultValue="%" Type="String" ControlID="TextBoxWorkplace"></asp:ControlParameter>
            <asp:ControlParameter Name="s" PropertyName="Text" DefaultValue="%" Type="String" ControlID="TextBoxSpecialization"></asp:ControlParameter>
            <asp:ControlParameter Name="e" PropertyName="Text" DefaultValue="%" Type="String" ControlID="TextBoxExperience"></asp:ControlParameter>
            <asp:ControlParameter Name="a" PropertyName="Text" DefaultValue="%" Type="String" ControlID="TextBoxAchievement"></asp:ControlParameter>
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
